From: Florian Müllner Date: Sat, 15 Sep 2012 22:46:28 +0000 (+0200) Subject: messageTray: Fix summary position in RTL locales X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5817 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e6ba7c6e4054f77570ab62e9e10745df50a43731;p=gnome-shell.git messageTray: Fix summary position in RTL locales https://bugzilla.gnome.org/show_bug.cgi?id=684214 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 30cb6a7e6..5f6e17f67 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1410,10 +1410,12 @@ const MessageTray = new Lang.Class({ actor.grab_key_focus(); })); global.focus_manager.add_group(this.actor); + let rtl = this.actor.get_text_direction() == Clutter.TextDirection.RTL; this._summary = new St.BoxLayout({ name: 'summary-mode', reactive: true, track_hover: true, - x_align: Clutter.ActorAlign.END, + x_align: rtl ? Clutter.ActorAlign.START + : Clutter.ActorAlign.END, x_expand: true, y_align: Clutter.ActorAlign.CENTER, y_expand: true });